package ar.com.personalTravellers.daos;

import java.util.Collection;

import ar.com.personalTravellers.beans.Client;
import ar.com.personalTravellers.beans.Country;

import com.angel.architecture.persistence.ids.ObjectId;
import com.angel.dao.generic.interfaces.GenericDAO;

/**
 *
 * @author William
 */
public interface ClientDAO extends GenericDAO<Client, ObjectId> {

    public Client findUniqueOrNullByNameSurnameAndEmail(String clientName, String clientSurname, String email);

    public Client findUniqueOrNullByNameAndSurname(String clientName, String clientSurname);

    public Collection<Client> findAllByName(String clientName);

    public Collection<Client> findAllBySurName(String clientSurname);

    public Client findUniqueByNameAndSurname(String clientName, String clientSurname);

    public Collection<Client> findAllByCountry(Country country);

    public Client findUniqueByEmail(String email);

    public Client findUniqueByTelephone(String telephone);
}